from django.db import models
from lapi_app.models.management_model.point_pid import Point_pid
from lapi_app.models.user_model.user_info import Userinfo


class Point_name(models.Model):
    field_name = models.CharField("事件名", max_length=255, null=False)
    fiel_value = models.TextField("事件值", null=True)
    username = models.CharField("操作人", max_length=255, null=True)
    create_time = models.DateTimeField("创建时间", auto_now_add=True)
    update_time = models.DateTimeField("更新时间", auto_now_add=True)

    def __str__(self):
        return self.field_name

